package wiz.client.activities.entrypoint;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class EntryPointPlace extends Place {

	private String fGameStateToken;

	public EntryPointPlace() {

	}

	public EntryPointPlace(String gameStateToken) {
		fGameStateToken = gameStateToken;
	}

	public String getGameStateToken() {
		return fGameStateToken;
	}
	
	
	public static class Tokenizer implements PlaceTokenizer<EntryPointPlace> {
		@Override
		public String getToken(EntryPointPlace place) {
			return place.fGameStateToken;
		}

		@Override
		public EntryPointPlace getPlace(String token) {
			return new EntryPointPlace(token);
		}
	}

}
